package com.yzkj.cpjxc.business.framework.tld;

/**
 * KindEditor函数标签
 */
public class KindEditorFunctionTag {

	public static String htmlspecialchars(Object obj) {
		if (obj == null) {
			return null;
		}
		String str = obj.toString();
		if (str != null) {

			str = str.replaceAll("&", "&amp;");
			str = str.replaceAll("<", "&lt;");
			str = str.replaceAll(">", "&gt;");
			str = str.replaceAll("\"", "&quot;");
		}
		return str;
	}
}
